// 商品
import http from '../utils/http.js';

/**
 * 商品分类查询
 */
export const GetGoodCategory = (data)=>{
    return http.get('/auth/good/category/tree',data)
}

/**
 * 商品查询
*/
export const GetGoodPage = (data)=>{
    return http.get('/auth/good/page',data)
}

/**
 * 商品详细
*/
export const GetGoodDetail = (id)=>{
    return http.get(`/auth/good/detail/${id}`)
}

/**
 * 商品收藏
*/
export const GetGoodCollect = (goodId)=>{
    return http.get(`/auth/good/collect/${goodId}`)
}